package com.zzyl.mapper;

import com.zzyl.dto.GetPageNursingsDto;
import com.zzyl.dto.UpdateNursingPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    List<NursingPlanVo> getAllNursingPlan();

    void addNursingPlan(NursingPlan nursingPlan);

    List<NursingPlanVo> getPageNursingPlan(GetPageNursingsDto dto);

    NursingPlanVo getNursingPlanById(Integer id);

    void addNursingPlanAndProject( NursingProjectPlan nursingProjectPlan);

    void deleteNursingPlanById(Integer id);

    List<NursingProjectPlanVo> getnursingProjectAndPlanByPlanId(Integer planId);

    void deleteNursingProjectPlanByPlanId(Integer id);

    void updateNursingById(UpdateNursingPlanDto dto);

    void updateStatus(Integer id, Integer status);
}
